// 基于template/src/views/{{appModules}}/{{pages@DEDATAVIEW}}/{{spinalCase page.codeName}}-model.ts.hbs生成
import { IDataViewModel } from '@/core/interface/view/model';

//  获取视图模型
function getModel(): IDataViewModel {
	return {
		caption: '统一认证/外部认证',
		title: '统一认证/外部认证表单选择数据视图',
		capPSLanguageRes: 'DE.LNAME.AUTH_PROVIDER',
		titlePSLanguageRes: 'PAGE.TITLE.AUTH_PROVIDER.FORMPICKUPDATAVIEW',
		showDataInfoBar: false,
		codeName: 'auth_providerFormPickupDataView',
		uiEngineModel: [],
		ctrls: [
			{
				name: 'dataview',
				codeName: 'FormType',
				controlType: 'DATAVIEW',
			},
		],
		ctrlParams: {
			AUTH_PROVIDERdataview: {},
		},
		cssName: '',
		name: 'auth_providerFormPickupDataView',
		viewType: 'DEFORMPICKUPDATAVIEW',
		viewStyle: 'DEFAULT',
		showCaption: true,
		isLoadDefault: true,
		entityCodeName: 'AUTH_PROVIDER',
		keyPSAppDEField: 'Id',
		majorPSAppDEField: 'Name',
		expandSearchForm: true,
		xDataCtrlName: 'dataview',
		quickSearchPlaceholder: ['应用名称'].join(','),
		useDefaultLayout: true,
		rowActiveMode: 2,
	};
}

//  获取工具栏
function getToolbarItems() {
	return [];
}

export const model = getModel();
export const toolbarItems = getToolbarItems();
